﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfStudy.MyControls
{
    public class Electronics
    {
        private string price;

        public string Type { get; set; }
        public string Name { get; set; }
        public string Price
        { 
            get { return String.Format("{0:c}", Convert.ToInt32(price)); } 
            set { this.price = value; } 
        }
        public string Year { get; set; }
    }
}
